package nowcoder;
/**
 * 36932-求最小公倍数
 * 链接：https://www.nowcoder.com/practice/22948c2cad484e0291350abad86136c3?tpId=37&&tqId=21331&rp=1&ru=/activity/oj&qru=/ta/huawei/question-ranking
 */
import java.util.*;
public class Day08_2 {
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        int a = input.nextInt();
        int b = input.nextInt();
        // 23 14
        if(a < b){
            a = a + b - (b = a);
        }
        int ret = a;
        while(ret % a != 0 || ret % b != 0) {
            ret += a;
        }
        System.out.println(ret);
    }
}
